﻿#region Using directives

using System;
using System.Data;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;

using NetROS.Tiers.Entities;
using NetROS.Tiers.Data;

#endregion

namespace NetROS.Tiers.Data.Bases
{	
	///<summary>
	/// This class is the base class for any <see cref="ObracunProviderBase"/> implementation.
	/// It exposes CRUD methods as well as selecting on index, foreign keys and custom stored procedures.
	///</summary>
	public abstract partial class ObracunProviderBaseCore : EntityProviderBase<NetROS.Tiers.Entities.Obracun, NetROS.Tiers.Entities.ObracunKey>
	{		
		#region Get from Many To Many Relationship Functions
		#endregion	
		
		#region Delete Methods

		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="transactionManager">A <see cref="TransactionManager"/> object.</param>
		/// <param name="key">The unique identifier of the row to delete.</param>
		/// <returns>Returns true if operation suceeded.</returns>
		public override bool Delete(TransactionManager transactionManager, NetROS.Tiers.Entities.ObracunKey key)
		{
			return Delete(transactionManager, key.ID);
		}
		
		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="iD">. Primary Key.</param>
		/// <remarks>Deletes based on primary key(s).</remarks>
		/// <returns>Returns true if operation suceeded.</returns>
		public bool Delete(System.Int32 iD)
		{
			return Delete(null, iD);
		}
		
		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD">. Primary Key.</param>
		/// <remarks>Deletes based on primary key(s).</remarks>
		/// <returns>Returns true if operation suceeded.</returns>
		public abstract bool Delete(TransactionManager transactionManager, System.Int32 iD);		
		
		#endregion Delete Methods
		
		#region Get By Foreign Key Functions
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblObracun_tblSifarnik key.
		///		FK_tblObracun_tblSifarnik Description: 
		/// </summary>
		/// <param name="identifikatorIDObrasca"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Obracun objects.</returns>
		public NetROS.Tiers.Entities.TList<Obracun> GetByIdentifikatorIDObrasca(System.Int32 identifikatorIDObrasca)
		{
			int count = -1;
			return GetByIdentifikatorIDObrasca(identifikatorIDObrasca, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblObracun_tblSifarnik key.
		///		FK_tblObracun_tblSifarnik Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="identifikatorIDObrasca"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Obracun objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<Obracun> GetByIdentifikatorIDObrasca(TransactionManager transactionManager, System.Int32 identifikatorIDObrasca)
		{
			int count = -1;
			return GetByIdentifikatorIDObrasca(transactionManager, identifikatorIDObrasca, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblObracun_tblSifarnik key.
		///		FK_tblObracun_tblSifarnik Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="identifikatorIDObrasca"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Obracun objects.</returns>
		public NetROS.Tiers.Entities.TList<Obracun> GetByIdentifikatorIDObrasca(TransactionManager transactionManager, System.Int32 identifikatorIDObrasca, int start, int pageLength)
		{
			int count = -1;
			return GetByIdentifikatorIDObrasca(transactionManager, identifikatorIDObrasca, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblObracun_tblSifarnik key.
		///		fK_tblObracun_tblSifarnik Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="identifikatorIDObrasca"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Obracun objects.</returns>
		public NetROS.Tiers.Entities.TList<Obracun> GetByIdentifikatorIDObrasca(System.Int32 identifikatorIDObrasca, int start, int pageLength)
		{
			int count =  -1;
			return GetByIdentifikatorIDObrasca(null, identifikatorIDObrasca, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblObracun_tblSifarnik key.
		///		fK_tblObracun_tblSifarnik Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="identifikatorIDObrasca"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Obracun objects.</returns>
		public NetROS.Tiers.Entities.TList<Obracun> GetByIdentifikatorIDObrasca(System.Int32 identifikatorIDObrasca, int start, int pageLength,out int count)
		{
			return GetByIdentifikatorIDObrasca(null, identifikatorIDObrasca, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblObracun_tblSifarnik key.
		///		FK_tblObracun_tblSifarnik Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="identifikatorIDObrasca"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Obracun objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<Obracun> GetByIdentifikatorIDObrasca(TransactionManager transactionManager, System.Int32 identifikatorIDObrasca, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblObracun_tblSifarnik1 key.
		///		FK_tblObracun_tblSifarnik1 Description: 
		/// </summary>
		/// <param name="vrstaUplateRSM"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Obracun objects.</returns>
		public NetROS.Tiers.Entities.TList<Obracun> GetByVrstaUplateRSM(System.Int32 vrstaUplateRSM)
		{
			int count = -1;
			return GetByVrstaUplateRSM(vrstaUplateRSM, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblObracun_tblSifarnik1 key.
		///		FK_tblObracun_tblSifarnik1 Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="vrstaUplateRSM"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Obracun objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<Obracun> GetByVrstaUplateRSM(TransactionManager transactionManager, System.Int32 vrstaUplateRSM)
		{
			int count = -1;
			return GetByVrstaUplateRSM(transactionManager, vrstaUplateRSM, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblObracun_tblSifarnik1 key.
		///		FK_tblObracun_tblSifarnik1 Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="vrstaUplateRSM"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Obracun objects.</returns>
		public NetROS.Tiers.Entities.TList<Obracun> GetByVrstaUplateRSM(TransactionManager transactionManager, System.Int32 vrstaUplateRSM, int start, int pageLength)
		{
			int count = -1;
			return GetByVrstaUplateRSM(transactionManager, vrstaUplateRSM, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblObracun_tblSifarnik1 key.
		///		fK_tblObracun_tblSifarnik1 Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="vrstaUplateRSM"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Obracun objects.</returns>
		public NetROS.Tiers.Entities.TList<Obracun> GetByVrstaUplateRSM(System.Int32 vrstaUplateRSM, int start, int pageLength)
		{
			int count =  -1;
			return GetByVrstaUplateRSM(null, vrstaUplateRSM, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblObracun_tblSifarnik1 key.
		///		fK_tblObracun_tblSifarnik1 Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="vrstaUplateRSM"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Obracun objects.</returns>
		public NetROS.Tiers.Entities.TList<Obracun> GetByVrstaUplateRSM(System.Int32 vrstaUplateRSM, int start, int pageLength,out int count)
		{
			return GetByVrstaUplateRSM(null, vrstaUplateRSM, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblObracun_tblSifarnik1 key.
		///		FK_tblObracun_tblSifarnik1 Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="vrstaUplateRSM"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Obracun objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<Obracun> GetByVrstaUplateRSM(TransactionManager transactionManager, System.Int32 vrstaUplateRSM, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblObracun_tblSifarnik2 key.
		///		FK_tblObracun_tblSifarnik2 Description: 
		/// </summary>
		/// <param name="rSMVrstaObveznika"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Obracun objects.</returns>
		public NetROS.Tiers.Entities.TList<Obracun> GetByRSMVrstaObveznika(System.Int32 rSMVrstaObveznika)
		{
			int count = -1;
			return GetByRSMVrstaObveznika(rSMVrstaObveznika, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblObracun_tblSifarnik2 key.
		///		FK_tblObracun_tblSifarnik2 Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="rSMVrstaObveznika"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Obracun objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<Obracun> GetByRSMVrstaObveznika(TransactionManager transactionManager, System.Int32 rSMVrstaObveznika)
		{
			int count = -1;
			return GetByRSMVrstaObveznika(transactionManager, rSMVrstaObveznika, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblObracun_tblSifarnik2 key.
		///		FK_tblObracun_tblSifarnik2 Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="rSMVrstaObveznika"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Obracun objects.</returns>
		public NetROS.Tiers.Entities.TList<Obracun> GetByRSMVrstaObveznika(TransactionManager transactionManager, System.Int32 rSMVrstaObveznika, int start, int pageLength)
		{
			int count = -1;
			return GetByRSMVrstaObveznika(transactionManager, rSMVrstaObveznika, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblObracun_tblSifarnik2 key.
		///		fK_tblObracun_tblSifarnik2 Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="rSMVrstaObveznika"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Obracun objects.</returns>
		public NetROS.Tiers.Entities.TList<Obracun> GetByRSMVrstaObveznika(System.Int32 rSMVrstaObveznika, int start, int pageLength)
		{
			int count =  -1;
			return GetByRSMVrstaObveznika(null, rSMVrstaObveznika, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblObracun_tblSifarnik2 key.
		///		fK_tblObracun_tblSifarnik2 Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="rSMVrstaObveznika"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Obracun objects.</returns>
		public NetROS.Tiers.Entities.TList<Obracun> GetByRSMVrstaObveznika(System.Int32 rSMVrstaObveznika, int start, int pageLength,out int count)
		{
			return GetByRSMVrstaObveznika(null, rSMVrstaObveznika, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblObracun_tblSifarnik2 key.
		///		FK_tblObracun_tblSifarnik2 Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="rSMVrstaObveznika"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Obracun objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<Obracun> GetByRSMVrstaObveznika(TransactionManager transactionManager, System.Int32 rSMVrstaObveznika, int start, int pageLength, out int count);
		
		#endregion

		#region Get By Index Functions
		
		/// <summary>
		/// 	Gets a row from the DataSource based on its primary key.
		/// </summary>
		/// <param name="transactionManager">A <see cref="TransactionManager"/> object.</param>
		/// <param name="key">The unique identifier of the row to retrieve.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <returns>Returns an instance of the Entity class.</returns>
		public override NetROS.Tiers.Entities.Obracun Get(TransactionManager transactionManager, NetROS.Tiers.Entities.ObracunKey key, int start, int pageLength)
		{
			return GetByID(transactionManager, key.ID, start, pageLength);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key PK_tblObracun index.
		/// </summary>
		/// <param name="iD"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Obracun"/> class.</returns>
		public NetROS.Tiers.Entities.Obracun GetByID(System.Int32 iD)
		{
			int count = -1;
			return GetByID(null,iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblObracun index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Obracun"/> class.</returns>
		public NetROS.Tiers.Entities.Obracun GetByID(System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByID(null, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblObracun index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Obracun"/> class.</returns>
		public NetROS.Tiers.Entities.Obracun GetByID(TransactionManager transactionManager, System.Int32 iD)
		{
			int count = -1;
			return GetByID(transactionManager, iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblObracun index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Obracun"/> class.</returns>
		public NetROS.Tiers.Entities.Obracun GetByID(TransactionManager transactionManager, System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByID(transactionManager, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblObracun index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Obracun"/> class.</returns>
		public NetROS.Tiers.Entities.Obracun GetByID(System.Int32 iD, int start, int pageLength, out int count)
		{
			return GetByID(null, iD, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblObracun index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Obracun"/> class.</returns>
		public abstract NetROS.Tiers.Entities.Obracun GetByID(TransactionManager transactionManager, System.Int32 iD, int start, int pageLength, out int count);
						
		#endregion "Get By Index Functions"
	
		#region Custom Methods
		
		
		#region _tblObracun_GenerirajRSM_Stavke 
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajRSM_Stavke' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajRSM_Stavke(System.Int32? @IDObracun)
		{
			 GenerirajRSM_Stavke(null, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajRSM_Stavke' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajRSM_Stavke(int start, int pageLength, System.Int32? @IDObracun)
		{
			 GenerirajRSM_Stavke(null, start, pageLength , @IDObracun);
		}
				
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajRSM_Stavke' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajRSM_Stavke(TransactionManager transactionManager, System.Int32? @IDObracun)
		{
			 GenerirajRSM_Stavke(transactionManager, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajRSM_Stavke' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void GenerirajRSM_Stavke(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDObracun);
		
		#endregion
		
		#region _tblObracun_GenerirajPorezneOlaksice 
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajPorezneOlaksice' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajPorezneOlaksice(System.Int32? @IDObracun)
		{
			 GenerirajPorezneOlaksice(null, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajPorezneOlaksice' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajPorezneOlaksice(int start, int pageLength, System.Int32? @IDObracun)
		{
			 GenerirajPorezneOlaksice(null, start, pageLength , @IDObracun);
		}
				
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajPorezneOlaksice' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajPorezneOlaksice(TransactionManager transactionManager, System.Int32? @IDObracun)
		{
			 GenerirajPorezneOlaksice(transactionManager, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajPorezneOlaksice' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void GenerirajPorezneOlaksice(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDObracun);
		
		#endregion
		
		#region _tblObracun_GenerirajObustaveNaknadeZbrojevi 
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajObustaveNaknadeZbrojevi' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajObustaveNaknadeZbrojevi(System.Int32? @IDObracun)
		{
			 GenerirajObustaveNaknadeZbrojevi(null, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajObustaveNaknadeZbrojevi' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajObustaveNaknadeZbrojevi(int start, int pageLength, System.Int32? @IDObracun)
		{
			 GenerirajObustaveNaknadeZbrojevi(null, start, pageLength , @IDObracun);
		}
				
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajObustaveNaknadeZbrojevi' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajObustaveNaknadeZbrojevi(TransactionManager transactionManager, System.Int32? @IDObracun)
		{
			 GenerirajObustaveNaknadeZbrojevi(transactionManager, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajObustaveNaknadeZbrojevi' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void GenerirajObustaveNaknadeZbrojevi(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDObracun);
		
		#endregion
		
		#region _tblObracun_GenerirajVirmane 
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajVirmane' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajVirmane(System.Int32? @IDObracun)
		{
			 GenerirajVirmane(null, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajVirmane' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajVirmane(int start, int pageLength, System.Int32? @IDObracun)
		{
			 GenerirajVirmane(null, start, pageLength , @IDObracun);
		}
				
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajVirmane' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajVirmane(TransactionManager transactionManager, System.Int32? @IDObracun)
		{
			 GenerirajVirmane(transactionManager, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajVirmane' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void GenerirajVirmane(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDObracun);
		
		#endregion
		
		#region _tblObracun_GetSpecifikacijaIsplatePoBanci 
		
		/// <summary>
		///	This method wrap the '_tblObracun_GetSpecifikacijaIsplatePoBanci' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="PocetniBrojBanke"> A <c>System.String</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader GetSpecifikacijaIsplatePoBanci(System.Int32? @IDObracun, System.String @PocetniBrojBanke)
		{
			return GetSpecifikacijaIsplatePoBanci(null, 0, int.MaxValue , @IDObracun, @PocetniBrojBanke);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GetSpecifikacijaIsplatePoBanci' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="PocetniBrojBanke"> A <c>System.String</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader GetSpecifikacijaIsplatePoBanci(int start, int pageLength, System.Int32? @IDObracun, System.String @PocetniBrojBanke)
		{
			return GetSpecifikacijaIsplatePoBanci(null, start, pageLength , @IDObracun, @PocetniBrojBanke);
		}
				
		/// <summary>
		///	This method wrap the '_tblObracun_GetSpecifikacijaIsplatePoBanci' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="PocetniBrojBanke"> A <c>System.String</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader GetSpecifikacijaIsplatePoBanci(TransactionManager transactionManager, System.Int32? @IDObracun, System.String @PocetniBrojBanke)
		{
			return GetSpecifikacijaIsplatePoBanci(transactionManager, 0, int.MaxValue , @IDObracun, @PocetniBrojBanke);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GetSpecifikacijaIsplatePoBanci' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="PocetniBrojBanke"> A <c>System.String</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public abstract IDataReader GetSpecifikacijaIsplatePoBanci(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDObracun, System.String @PocetniBrojBanke);
		
		#endregion
		
		#region _tblObracun_GenerirajRSM 
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajRSM' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajRSM(System.Int32? @IDObracun)
		{
			 GenerirajRSM(null, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajRSM' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajRSM(int start, int pageLength, System.Int32? @IDObracun)
		{
			 GenerirajRSM(null, start, pageLength , @IDObracun);
		}
				
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajRSM' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajRSM(TransactionManager transactionManager, System.Int32? @IDObracun)
		{
			 GenerirajRSM(transactionManager, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajRSM' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void GenerirajRSM(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDObracun);
		
		#endregion
		
		#region _tblObracun_GenerirajRaspodjelu_Iznosi 
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajRaspodjelu_Iznosi' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajRaspodjelu_Iznosi(System.Int32? @IDObracun)
		{
			 GenerirajRaspodjelu_Iznosi(null, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajRaspodjelu_Iznosi' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajRaspodjelu_Iznosi(int start, int pageLength, System.Int32? @IDObracun)
		{
			 GenerirajRaspodjelu_Iznosi(null, start, pageLength , @IDObracun);
		}
				
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajRaspodjelu_Iznosi' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajRaspodjelu_Iznosi(TransactionManager transactionManager, System.Int32? @IDObracun)
		{
			 GenerirajRaspodjelu_Iznosi(transactionManager, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajRaspodjelu_Iznosi' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void GenerirajRaspodjelu_Iznosi(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDObracun);
		
		#endregion
		
		#region _tblObracun_Obnovi 
		
		/// <summary>
		///	This method wrap the '_tblObracun_Obnovi' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="GenerirajObustaveNaknade"> A <c>System.Int32?</c> instance.</param>
		/// <param name="GenerirajRaspodjeluPrimanja"> A <c>System.Int32?</c> instance.</param>
		/// <param name="GenerirajIznosZdravstvenogZaInozemstvo"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader Obnovi(System.Int32? @IDObracun, System.Int32? @GenerirajObustaveNaknade, System.Int32? @GenerirajRaspodjeluPrimanja, System.Int32? @GenerirajIznosZdravstvenogZaInozemstvo)
		{
			return Obnovi(null, 0, int.MaxValue , @IDObracun, @GenerirajObustaveNaknade, @GenerirajRaspodjeluPrimanja, @GenerirajIznosZdravstvenogZaInozemstvo);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_Obnovi' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="GenerirajObustaveNaknade"> A <c>System.Int32?</c> instance.</param>
		/// <param name="GenerirajRaspodjeluPrimanja"> A <c>System.Int32?</c> instance.</param>
		/// <param name="GenerirajIznosZdravstvenogZaInozemstvo"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader Obnovi(int start, int pageLength, System.Int32? @IDObracun, System.Int32? @GenerirajObustaveNaknade, System.Int32? @GenerirajRaspodjeluPrimanja, System.Int32? @GenerirajIznosZdravstvenogZaInozemstvo)
		{
			return Obnovi(null, start, pageLength , @IDObracun, @GenerirajObustaveNaknade, @GenerirajRaspodjeluPrimanja, @GenerirajIznosZdravstvenogZaInozemstvo);
		}
				
		/// <summary>
		///	This method wrap the '_tblObracun_Obnovi' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="GenerirajObustaveNaknade"> A <c>System.Int32?</c> instance.</param>
		/// <param name="GenerirajRaspodjeluPrimanja"> A <c>System.Int32?</c> instance.</param>
		/// <param name="GenerirajIznosZdravstvenogZaInozemstvo"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader Obnovi(TransactionManager transactionManager, System.Int32? @IDObracun, System.Int32? @GenerirajObustaveNaknade, System.Int32? @GenerirajRaspodjeluPrimanja, System.Int32? @GenerirajIznosZdravstvenogZaInozemstvo)
		{
			return Obnovi(transactionManager, 0, int.MaxValue , @IDObracun, @GenerirajObustaveNaknade, @GenerirajRaspodjeluPrimanja, @GenerirajIznosZdravstvenogZaInozemstvo);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_Obnovi' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="GenerirajObustaveNaknade"> A <c>System.Int32?</c> instance.</param>
		/// <param name="GenerirajRaspodjeluPrimanja"> A <c>System.Int32?</c> instance.</param>
		/// <param name="GenerirajIznosZdravstvenogZaInozemstvo"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public abstract IDataReader Obnovi(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDObracun, System.Int32? @GenerirajObustaveNaknade, System.Int32? @GenerirajRaspodjeluPrimanja, System.Int32? @GenerirajIznosZdravstvenogZaInozemstvo);
		
		#endregion
		
		#region _tblObracun_Novi 
		
		/// <summary>
		///	This method wrap the '_tblObracun_Novi' stored procedure. 
		/// </summary>
		/// <param name="ObracunDatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="ObracunDatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumIsplate"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="VrstaUplateRSM"> A <c>System.Int32?</c> instance.</param>
		/// <param name="MinimalniOsobniOdbitak"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="MaksimalniIznosPorezneOlaksice"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="IdentifikatorIDObrasca"> A <c>System.Int32?</c> instance.</param>
		/// <param name="DoprinosPoDanuBoravkaUInozemstvu"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosNezgoda"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosZdravstveno"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="RSMVrstaObveznika"> A <c>System.Int32?</c> instance.</param>
		/// <param name="DoprinosZaposljavanje"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosZaposljavanjeInvalida"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="MIO1aPostotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="MIO1bPostotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="MIO2Postotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="NajvisaMjOsnovica"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="TipPrimanja"> A <c>System.String</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader Novi(System.DateTime? @ObracunDatumOd, System.DateTime? @ObracunDatumDo, System.DateTime? @DatumIsplate, System.Int32? @VrstaUplateRSM, System.Decimal? @MinimalniOsobniOdbitak, System.Decimal? @MaksimalniIznosPorezneOlaksice, System.Int32? @IdentifikatorIDObrasca, System.Decimal? @DoprinosPoDanuBoravkaUInozemstvu, System.Decimal? @DoprinosNezgoda, System.Decimal? @DoprinosZdravstveno, System.Int32? @RSMVrstaObveznika, System.Decimal? @DoprinosZaposljavanje, System.Decimal? @DoprinosZaposljavanjeInvalida, System.Single? @MIO1aPostotak, System.Single? @MIO1bPostotak, System.Single? @MIO2Postotak, System.Decimal? @NajvisaMjOsnovica, System.String @TipPrimanja)
		{
			return Novi(null, 0, int.MaxValue , @ObracunDatumOd, @ObracunDatumDo, @DatumIsplate, @VrstaUplateRSM, @MinimalniOsobniOdbitak, @MaksimalniIznosPorezneOlaksice, @IdentifikatorIDObrasca, @DoprinosPoDanuBoravkaUInozemstvu, @DoprinosNezgoda, @DoprinosZdravstveno, @RSMVrstaObveznika, @DoprinosZaposljavanje, @DoprinosZaposljavanjeInvalida, @MIO1aPostotak, @MIO1bPostotak, @MIO2Postotak, @NajvisaMjOsnovica, @TipPrimanja);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_Novi' stored procedure. 
		/// </summary>
		/// <param name="ObracunDatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="ObracunDatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumIsplate"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="VrstaUplateRSM"> A <c>System.Int32?</c> instance.</param>
		/// <param name="MinimalniOsobniOdbitak"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="MaksimalniIznosPorezneOlaksice"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="IdentifikatorIDObrasca"> A <c>System.Int32?</c> instance.</param>
		/// <param name="DoprinosPoDanuBoravkaUInozemstvu"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosNezgoda"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosZdravstveno"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="RSMVrstaObveznika"> A <c>System.Int32?</c> instance.</param>
		/// <param name="DoprinosZaposljavanje"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosZaposljavanjeInvalida"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="MIO1aPostotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="MIO1bPostotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="MIO2Postotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="NajvisaMjOsnovica"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="TipPrimanja"> A <c>System.String</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader Novi(int start, int pageLength, System.DateTime? @ObracunDatumOd, System.DateTime? @ObracunDatumDo, System.DateTime? @DatumIsplate, System.Int32? @VrstaUplateRSM, System.Decimal? @MinimalniOsobniOdbitak, System.Decimal? @MaksimalniIznosPorezneOlaksice, System.Int32? @IdentifikatorIDObrasca, System.Decimal? @DoprinosPoDanuBoravkaUInozemstvu, System.Decimal? @DoprinosNezgoda, System.Decimal? @DoprinosZdravstveno, System.Int32? @RSMVrstaObveznika, System.Decimal? @DoprinosZaposljavanje, System.Decimal? @DoprinosZaposljavanjeInvalida, System.Single? @MIO1aPostotak, System.Single? @MIO1bPostotak, System.Single? @MIO2Postotak, System.Decimal? @NajvisaMjOsnovica, System.String @TipPrimanja)
		{
			return Novi(null, start, pageLength , @ObracunDatumOd, @ObracunDatumDo, @DatumIsplate, @VrstaUplateRSM, @MinimalniOsobniOdbitak, @MaksimalniIznosPorezneOlaksice, @IdentifikatorIDObrasca, @DoprinosPoDanuBoravkaUInozemstvu, @DoprinosNezgoda, @DoprinosZdravstveno, @RSMVrstaObveznika, @DoprinosZaposljavanje, @DoprinosZaposljavanjeInvalida, @MIO1aPostotak, @MIO1bPostotak, @MIO2Postotak, @NajvisaMjOsnovica, @TipPrimanja);
		}
				
		/// <summary>
		///	This method wrap the '_tblObracun_Novi' stored procedure. 
		/// </summary>
		/// <param name="ObracunDatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="ObracunDatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumIsplate"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="VrstaUplateRSM"> A <c>System.Int32?</c> instance.</param>
		/// <param name="MinimalniOsobniOdbitak"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="MaksimalniIznosPorezneOlaksice"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="IdentifikatorIDObrasca"> A <c>System.Int32?</c> instance.</param>
		/// <param name="DoprinosPoDanuBoravkaUInozemstvu"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosNezgoda"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosZdravstveno"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="RSMVrstaObveznika"> A <c>System.Int32?</c> instance.</param>
		/// <param name="DoprinosZaposljavanje"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosZaposljavanjeInvalida"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="MIO1aPostotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="MIO1bPostotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="MIO2Postotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="NajvisaMjOsnovica"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="TipPrimanja"> A <c>System.String</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader Novi(TransactionManager transactionManager, System.DateTime? @ObracunDatumOd, System.DateTime? @ObracunDatumDo, System.DateTime? @DatumIsplate, System.Int32? @VrstaUplateRSM, System.Decimal? @MinimalniOsobniOdbitak, System.Decimal? @MaksimalniIznosPorezneOlaksice, System.Int32? @IdentifikatorIDObrasca, System.Decimal? @DoprinosPoDanuBoravkaUInozemstvu, System.Decimal? @DoprinosNezgoda, System.Decimal? @DoprinosZdravstveno, System.Int32? @RSMVrstaObveznika, System.Decimal? @DoprinosZaposljavanje, System.Decimal? @DoprinosZaposljavanjeInvalida, System.Single? @MIO1aPostotak, System.Single? @MIO1bPostotak, System.Single? @MIO2Postotak, System.Decimal? @NajvisaMjOsnovica, System.String @TipPrimanja)
		{
			return Novi(transactionManager, 0, int.MaxValue , @ObracunDatumOd, @ObracunDatumDo, @DatumIsplate, @VrstaUplateRSM, @MinimalniOsobniOdbitak, @MaksimalniIznosPorezneOlaksice, @IdentifikatorIDObrasca, @DoprinosPoDanuBoravkaUInozemstvu, @DoprinosNezgoda, @DoprinosZdravstveno, @RSMVrstaObveznika, @DoprinosZaposljavanje, @DoprinosZaposljavanjeInvalida, @MIO1aPostotak, @MIO1bPostotak, @MIO2Postotak, @NajvisaMjOsnovica, @TipPrimanja);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_Novi' stored procedure. 
		/// </summary>
		/// <param name="ObracunDatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="ObracunDatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumIsplate"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="VrstaUplateRSM"> A <c>System.Int32?</c> instance.</param>
		/// <param name="MinimalniOsobniOdbitak"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="MaksimalniIznosPorezneOlaksice"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="IdentifikatorIDObrasca"> A <c>System.Int32?</c> instance.</param>
		/// <param name="DoprinosPoDanuBoravkaUInozemstvu"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosNezgoda"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosZdravstveno"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="RSMVrstaObveznika"> A <c>System.Int32?</c> instance.</param>
		/// <param name="DoprinosZaposljavanje"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosZaposljavanjeInvalida"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="MIO1aPostotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="MIO1bPostotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="MIO2Postotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="NajvisaMjOsnovica"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="TipPrimanja"> A <c>System.String</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public abstract IDataReader Novi(TransactionManager transactionManager, int start, int pageLength , System.DateTime? @ObracunDatumOd, System.DateTime? @ObracunDatumDo, System.DateTime? @DatumIsplate, System.Int32? @VrstaUplateRSM, System.Decimal? @MinimalniOsobniOdbitak, System.Decimal? @MaksimalniIznosPorezneOlaksice, System.Int32? @IdentifikatorIDObrasca, System.Decimal? @DoprinosPoDanuBoravkaUInozemstvu, System.Decimal? @DoprinosNezgoda, System.Decimal? @DoprinosZdravstveno, System.Int32? @RSMVrstaObveznika, System.Decimal? @DoprinosZaposljavanje, System.Decimal? @DoprinosZaposljavanjeInvalida, System.Single? @MIO1aPostotak, System.Single? @MIO1bPostotak, System.Single? @MIO2Postotak, System.Decimal? @NajvisaMjOsnovica, System.String @TipPrimanja);
		
		#endregion
		
		#region _tblObracun_PonovnoObracunajRaspodjelu 
		
		/// <summary>
		///	This method wrap the '_tblObracun_PonovnoObracunajRaspodjelu' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void PonovnoObracunajRaspodjelu(System.Int32? @IDObracun)
		{
			 PonovnoObracunajRaspodjelu(null, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_PonovnoObracunajRaspodjelu' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void PonovnoObracunajRaspodjelu(int start, int pageLength, System.Int32? @IDObracun)
		{
			 PonovnoObracunajRaspodjelu(null, start, pageLength , @IDObracun);
		}
				
		/// <summary>
		///	This method wrap the '_tblObracun_PonovnoObracunajRaspodjelu' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void PonovnoObracunajRaspodjelu(TransactionManager transactionManager, System.Int32? @IDObracun)
		{
			 PonovnoObracunajRaspodjelu(transactionManager, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_PonovnoObracunajRaspodjelu' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void PonovnoObracunajRaspodjelu(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDObracun);
		
		#endregion
		
		#region _tblObracun_GenerirajKnjizenjeBase 
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajKnjizenjeBase' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="PodatakOPlaci"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajKnjizenjeBase(System.Int32? @IDObracun, System.Int32? @PodatakOPlaci)
		{
			 GenerirajKnjizenjeBase(null, 0, int.MaxValue , @IDObracun, @PodatakOPlaci);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajKnjizenjeBase' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="PodatakOPlaci"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajKnjizenjeBase(int start, int pageLength, System.Int32? @IDObracun, System.Int32? @PodatakOPlaci)
		{
			 GenerirajKnjizenjeBase(null, start, pageLength , @IDObracun, @PodatakOPlaci);
		}
				
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajKnjizenjeBase' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="PodatakOPlaci"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajKnjizenjeBase(TransactionManager transactionManager, System.Int32? @IDObracun, System.Int32? @PodatakOPlaci)
		{
			 GenerirajKnjizenjeBase(transactionManager, 0, int.MaxValue , @IDObracun, @PodatakOPlaci);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajKnjizenjeBase' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="PodatakOPlaci"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void GenerirajKnjizenjeBase(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDObracun, System.Int32? @PodatakOPlaci);
		
		#endregion
		
		#region _tblObracun_GenerirajVirmaneBase 
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajVirmaneBase' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="PodatakOPlaci"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajVirmaneBase(System.Int32? @IDObracun, System.Int32? @PodatakOPlaci)
		{
			 GenerirajVirmaneBase(null, 0, int.MaxValue , @IDObracun, @PodatakOPlaci);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajVirmaneBase' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="PodatakOPlaci"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajVirmaneBase(int start, int pageLength, System.Int32? @IDObracun, System.Int32? @PodatakOPlaci)
		{
			 GenerirajVirmaneBase(null, start, pageLength , @IDObracun, @PodatakOPlaci);
		}
				
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajVirmaneBase' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="PodatakOPlaci"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajVirmaneBase(TransactionManager transactionManager, System.Int32? @IDObracun, System.Int32? @PodatakOPlaci)
		{
			 GenerirajVirmaneBase(transactionManager, 0, int.MaxValue , @IDObracun, @PodatakOPlaci);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajVirmaneBase' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="PodatakOPlaci"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void GenerirajVirmaneBase(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDObracun, System.Int32? @PodatakOPlaci);
		
		#endregion
		
		#region _tblObracun_GenerirajKnjizenje_old 
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajKnjizenje_old' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajKnjizenje_old(System.Int32? @IDObracun)
		{
			 GenerirajKnjizenje_old(null, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajKnjizenje_old' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajKnjizenje_old(int start, int pageLength, System.Int32? @IDObracun)
		{
			 GenerirajKnjizenje_old(null, start, pageLength , @IDObracun);
		}
				
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajKnjizenje_old' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajKnjizenje_old(TransactionManager transactionManager, System.Int32? @IDObracun)
		{
			 GenerirajKnjizenje_old(transactionManager, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajKnjizenje_old' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void GenerirajKnjizenje_old(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDObracun);
		
		#endregion
		
		#region _tblObracun_GenerirajMIOPorezPrirez 
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajMIOPorezPrirez' stored procedure. 
		/// </summary>
		/// <param name="DoprinosNezgoda"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosZaposljavanje"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosZaposljavanjeSInvaliditetom"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosZdravstveno"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="MIO1aPostotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="MIO1bPostotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="MIO2Postotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="NajvisaMjOsnovica"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="ObracunDatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajMIOPorezPrirez(System.Decimal? @DoprinosNezgoda, System.Decimal? @DoprinosZaposljavanje, System.Decimal? @DoprinosZaposljavanjeSInvaliditetom, System.Decimal? @DoprinosZdravstveno, System.Int32? @IDObracun, System.Single? @MIO1aPostotak, System.Single? @MIO1bPostotak, System.Single? @MIO2Postotak, System.Decimal? @NajvisaMjOsnovica, System.DateTime? @ObracunDatumDo)
		{
			 GenerirajMIOPorezPrirez(null, 0, int.MaxValue , @DoprinosNezgoda, @DoprinosZaposljavanje, @DoprinosZaposljavanjeSInvaliditetom, @DoprinosZdravstveno, @IDObracun, @MIO1aPostotak, @MIO1bPostotak, @MIO2Postotak, @NajvisaMjOsnovica, @ObracunDatumDo);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajMIOPorezPrirez' stored procedure. 
		/// </summary>
		/// <param name="DoprinosNezgoda"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosZaposljavanje"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosZaposljavanjeSInvaliditetom"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosZdravstveno"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="MIO1aPostotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="MIO1bPostotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="MIO2Postotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="NajvisaMjOsnovica"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="ObracunDatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajMIOPorezPrirez(int start, int pageLength, System.Decimal? @DoprinosNezgoda, System.Decimal? @DoprinosZaposljavanje, System.Decimal? @DoprinosZaposljavanjeSInvaliditetom, System.Decimal? @DoprinosZdravstveno, System.Int32? @IDObracun, System.Single? @MIO1aPostotak, System.Single? @MIO1bPostotak, System.Single? @MIO2Postotak, System.Decimal? @NajvisaMjOsnovica, System.DateTime? @ObracunDatumDo)
		{
			 GenerirajMIOPorezPrirez(null, start, pageLength , @DoprinosNezgoda, @DoprinosZaposljavanje, @DoprinosZaposljavanjeSInvaliditetom, @DoprinosZdravstveno, @IDObracun, @MIO1aPostotak, @MIO1bPostotak, @MIO2Postotak, @NajvisaMjOsnovica, @ObracunDatumDo);
		}
				
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajMIOPorezPrirez' stored procedure. 
		/// </summary>
		/// <param name="DoprinosNezgoda"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosZaposljavanje"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosZaposljavanjeSInvaliditetom"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosZdravstveno"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="MIO1aPostotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="MIO1bPostotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="MIO2Postotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="NajvisaMjOsnovica"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="ObracunDatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajMIOPorezPrirez(TransactionManager transactionManager, System.Decimal? @DoprinosNezgoda, System.Decimal? @DoprinosZaposljavanje, System.Decimal? @DoprinosZaposljavanjeSInvaliditetom, System.Decimal? @DoprinosZdravstveno, System.Int32? @IDObracun, System.Single? @MIO1aPostotak, System.Single? @MIO1bPostotak, System.Single? @MIO2Postotak, System.Decimal? @NajvisaMjOsnovica, System.DateTime? @ObracunDatumDo)
		{
			 GenerirajMIOPorezPrirez(transactionManager, 0, int.MaxValue , @DoprinosNezgoda, @DoprinosZaposljavanje, @DoprinosZaposljavanjeSInvaliditetom, @DoprinosZdravstveno, @IDObracun, @MIO1aPostotak, @MIO1bPostotak, @MIO2Postotak, @NajvisaMjOsnovica, @ObracunDatumDo);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajMIOPorezPrirez' stored procedure. 
		/// </summary>
		/// <param name="DoprinosNezgoda"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosZaposljavanje"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosZaposljavanjeSInvaliditetom"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="DoprinosZdravstveno"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="MIO1aPostotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="MIO1bPostotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="MIO2Postotak"> A <c>System.Single?</c> instance.</param>
		/// <param name="NajvisaMjOsnovica"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="ObracunDatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void GenerirajMIOPorezPrirez(TransactionManager transactionManager, int start, int pageLength , System.Decimal? @DoprinosNezgoda, System.Decimal? @DoprinosZaposljavanje, System.Decimal? @DoprinosZaposljavanjeSInvaliditetom, System.Decimal? @DoprinosZdravstveno, System.Int32? @IDObracun, System.Single? @MIO1aPostotak, System.Single? @MIO1bPostotak, System.Single? @MIO2Postotak, System.Decimal? @NajvisaMjOsnovica, System.DateTime? @ObracunDatumDo);
		
		#endregion
		
		#region _tblObracun_GenerirajZdravstvenoZaInozemstvo 
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajZdravstvenoZaInozemstvo' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajZdravstvenoZaInozemstvo(System.Int32? @IDObracun)
		{
			 GenerirajZdravstvenoZaInozemstvo(null, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajZdravstvenoZaInozemstvo' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajZdravstvenoZaInozemstvo(int start, int pageLength, System.Int32? @IDObracun)
		{
			 GenerirajZdravstvenoZaInozemstvo(null, start, pageLength , @IDObracun);
		}
				
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajZdravstvenoZaInozemstvo' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajZdravstvenoZaInozemstvo(TransactionManager transactionManager, System.Int32? @IDObracun)
		{
			 GenerirajZdravstvenoZaInozemstvo(transactionManager, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajZdravstvenoZaInozemstvo' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void GenerirajZdravstvenoZaInozemstvo(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDObracun);
		
		#endregion
		
		#region _tblObracun_GenerirajKnjizenje 
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajKnjizenje' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajKnjizenje(System.Int32? @IDObracun)
		{
			 GenerirajKnjizenje(null, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajKnjizenje' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajKnjizenje(int start, int pageLength, System.Int32? @IDObracun)
		{
			 GenerirajKnjizenje(null, start, pageLength , @IDObracun);
		}
				
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajKnjizenje' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajKnjizenje(TransactionManager transactionManager, System.Int32? @IDObracun)
		{
			 GenerirajKnjizenje(transactionManager, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajKnjizenje' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void GenerirajKnjizenje(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDObracun);
		
		#endregion
		
		#region _tblObracun_GenerirajRaspodjelu 
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajRaspodjelu' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="TipPrimanja"> A <c>System.String</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajRaspodjelu(System.Int32? @IDObracun, System.String @TipPrimanja)
		{
			 GenerirajRaspodjelu(null, 0, int.MaxValue , @IDObracun, @TipPrimanja);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajRaspodjelu' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="TipPrimanja"> A <c>System.String</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajRaspodjelu(int start, int pageLength, System.Int32? @IDObracun, System.String @TipPrimanja)
		{
			 GenerirajRaspodjelu(null, start, pageLength , @IDObracun, @TipPrimanja);
		}
				
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajRaspodjelu' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="TipPrimanja"> A <c>System.String</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajRaspodjelu(TransactionManager transactionManager, System.Int32? @IDObracun, System.String @TipPrimanja)
		{
			 GenerirajRaspodjelu(transactionManager, 0, int.MaxValue , @IDObracun, @TipPrimanja);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajRaspodjelu' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="TipPrimanja"> A <c>System.String</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void GenerirajRaspodjelu(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDObracun, System.String @TipPrimanja);
		
		#endregion
		
		#region _tblObracun_GenerirajPrijenosSatiNaDrugiTip 
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajPrijenosSatiNaDrugiTip' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="KolikoSati"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="STipaPrimanja"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajPrijenosSatiNaDrugiTip(System.Int32? @IDObracun, System.Decimal? @KolikoSati, System.Int32? @STipaPrimanja)
		{
			 GenerirajPrijenosSatiNaDrugiTip(null, 0, int.MaxValue , @IDObracun, @KolikoSati, @STipaPrimanja);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajPrijenosSatiNaDrugiTip' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="KolikoSati"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="STipaPrimanja"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajPrijenosSatiNaDrugiTip(int start, int pageLength, System.Int32? @IDObracun, System.Decimal? @KolikoSati, System.Int32? @STipaPrimanja)
		{
			 GenerirajPrijenosSatiNaDrugiTip(null, start, pageLength , @IDObracun, @KolikoSati, @STipaPrimanja);
		}
				
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajPrijenosSatiNaDrugiTip' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="KolikoSati"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="STipaPrimanja"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajPrijenosSatiNaDrugiTip(TransactionManager transactionManager, System.Int32? @IDObracun, System.Decimal? @KolikoSati, System.Int32? @STipaPrimanja)
		{
			 GenerirajPrijenosSatiNaDrugiTip(transactionManager, 0, int.MaxValue , @IDObracun, @KolikoSati, @STipaPrimanja);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajPrijenosSatiNaDrugiTip' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="KolikoSati"> A <c>System.Decimal?</c> instance.</param>
		/// <param name="STipaPrimanja"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void GenerirajPrijenosSatiNaDrugiTip(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDObracun, System.Decimal? @KolikoSati, System.Int32? @STipaPrimanja);
		
		#endregion
		
		#region _tblObracun_GenerirajObustaveNaknade 
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajObustaveNaknade' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajObustaveNaknade(System.Int32? @IDObracun)
		{
			 GenerirajObustaveNaknade(null, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajObustaveNaknade' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajObustaveNaknade(int start, int pageLength, System.Int32? @IDObracun)
		{
			 GenerirajObustaveNaknade(null, start, pageLength , @IDObracun);
		}
				
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajObustaveNaknade' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajObustaveNaknade(TransactionManager transactionManager, System.Int32? @IDObracun)
		{
			 GenerirajObustaveNaknade(transactionManager, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajObustaveNaknade' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void GenerirajObustaveNaknade(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDObracun);
		
		#endregion
		
		#region _tblObracun_GenerirajPosPorezNeto 
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajPosPorezNeto' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajPosPorezNeto(System.Int32? @IDObracun)
		{
			 GenerirajPosPorezNeto(null, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajPosPorezNeto' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajPosPorezNeto(int start, int pageLength, System.Int32? @IDObracun)
		{
			 GenerirajPosPorezNeto(null, start, pageLength , @IDObracun);
		}
				
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajPosPorezNeto' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void GenerirajPosPorezNeto(TransactionManager transactionManager, System.Int32? @IDObracun)
		{
			 GenerirajPosPorezNeto(transactionManager, 0, int.MaxValue , @IDObracun);
		}
		
		/// <summary>
		///	This method wrap the '_tblObracun_GenerirajPosPorezNeto' stored procedure. 
		/// </summary>
		/// <param name="IDObracun"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void GenerirajPosPorezNeto(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDObracun);
		
		#endregion
		
		#endregion

		#region Helper Functions	
		
		/// <summary>
		/// Fill a NetROS.Tiers.Entities.TList&lt;Obracun&gt; From a DataReader.
		/// </summary>
		/// <param name="reader">Datareader</param>
		/// <param name="rows">The collection to fill</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">number of rows.</param>
		/// <returns>a <see cref="NetROS.Tiers.Entities.TList&lt;Obracun&gt;"/></returns>
		public static NetROS.Tiers.Entities.TList<Obracun> Fill(IDataReader reader, NetROS.Tiers.Entities.TList<Obracun> rows, int start, int pageLength)
		{
		// advance to the starting row
		for (int i = 0; i < start; i++)
		{
			if (!reader.Read())
			return rows; // not enough rows, just return
		}
		for (int i = 0; i < pageLength; i++)
		{
			if (!reader.Read())
			break; // we are done
			string key = null;
			
			NetROS.Tiers.Entities.Obracun c = null;
			if (DataRepository.Provider.UseEntityFactory)
			{
			key = new System.Text.StringBuilder("Obracun")
			.Append("|").Append((reader.IsDBNull(((int)NetROS.Tiers.Entities.ObracunColumn.ID - 1))?(int)0:(System.Int32)reader[((int)NetROS.Tiers.Entities.ObracunColumn.ID - 1)]).ToString()).ToString();
			c = EntityManager.LocateOrCreate<Obracun>(
			key.ToString(), // EntityTrackingKey
			"Obracun",  //Creational Type
			DataRepository.Provider.EntityCreationalFactoryType,  //Factory used to create entity
			DataRepository.Provider.EnableEntityTracking); // Track this entity?
			}
			else
			{
			c = new NetROS.Tiers.Entities.Obracun();
			}
			
			if (!DataRepository.Provider.EnableEntityTracking ||
			c.EntityState == EntityState.Added ||
			(DataRepository.Provider.EnableEntityTracking &&
			((DataRepository.Provider.CurrentLoadPolicy == LoadPolicy.PreserveChanges && c.EntityState == EntityState.Unchanged) ||
			(DataRepository.Provider.CurrentLoadPolicy == LoadPolicy.DiscardChanges && (c.EntityState == EntityState.Unchanged ||
								c.EntityState == EntityState.Changed)))))
						{
			c.SuppressEntityEvents = true;
			c.ID = (System.Int32)reader["ID"];
			c.DatumOd = (System.DateTime)reader["DatumOd"];
			c.DatumDo = (System.DateTime)reader["DatumDo"];
			c.VrstaUplateRSM = (System.Int32)reader["VrstaUplateRSM"];
			c.RedniBrojUGodini = (System.Int32)reader["RedniBrojUGodini"];
			c.MinimalniOsobniOdbitak = (System.Decimal)reader["MinimalniOsobniOdbitak"];
			c.FondSati = (System.Single)reader["FondSati"];
			c.MaksimalniIznosPorezneOlaksice = (System.Decimal)reader["MaksimalniIznosPorezneOlaksice"];
			c.IdentifikatorIDObrasca = (System.Int32)reader["IdentifikatorIDObrasca"];
			c.BrutoOsnovica = (System.Decimal)reader["BrutoOsnovica"];
			c.DoprinosPoDanuBoravkaUInozemstvu = reader.IsDBNull(reader.GetOrdinal("DoprinosPoDanuBoravkaUInozemstvu")) ? null : (System.Decimal?)reader["DoprinosPoDanuBoravkaUInozemstvu"];
			c.Status = (System.Int32)reader["Status"];
			c.DoprinosZdravstveno = (System.Decimal)reader["DoprinosZdravstveno"];
			c.DoprinosZaposljavanje = (System.Decimal)reader["DoprinosZaposljavanje"];
			c.DoprinosNezgoda = (System.Decimal)reader["DoprinosNezgoda"];
			c.RSMVrstaObveznika = (System.Int32)reader["RSMVrstaObveznika"];
			c.DatumIsplate = (System.DateTime)reader["DatumIsplate"];
			c.MIO1aPostotak = reader.IsDBNull(reader.GetOrdinal("MIO1aPostotak")) ? null : (System.Single?)reader["MIO1aPostotak"];
			c.MIO1bPostotak = reader.IsDBNull(reader.GetOrdinal("MIO1bPostotak")) ? null : (System.Single?)reader["MIO1bPostotak"];
			c.MIO2Postotak = reader.IsDBNull(reader.GetOrdinal("MIO2Postotak")) ? null : (System.Single?)reader["MIO2Postotak"];
			c.NajvisaMjOsnovica = reader.IsDBNull(reader.GetOrdinal("NajvisaMjOsnovica")) ? null : (System.Decimal?)reader["NajvisaMjOsnovica"];
			c.DoprinosZaposljavanjeSInvaliditetom = reader.IsDBNull(reader.GetOrdinal("DoprinosZaposljavanjeSInvaliditetom")) ? null : (System.Decimal?)reader["DoprinosZaposljavanjeSInvaliditetom"];
			c.IznosZdravstvenogZaInozemstvo = reader.IsDBNull(reader.GetOrdinal("IznosZdravstvenogZaInozemstvo")) ? null : (System.Decimal?)reader["IznosZdravstvenogZaInozemstvo"];
			c.EntityTrackingKey = key;
			c.AcceptChanges();
			c.SuppressEntityEvents = false;
			}
			rows.Add(c);
		}
		return rows;
		}		
		/// <summary>
		/// Refreshes the <see cref="NetROS.Tiers.Entities.Obracun"/> object from the <see cref="IDataReader"/>.
		/// </summary>
		/// <param name="reader">The <see cref="IDataReader"/> to read from.</param>
		/// <param name="entity">The <see cref="NetROS.Tiers.Entities.Obracun"/> object to refresh.</param>
		public static void RefreshEntity(IDataReader reader, NetROS.Tiers.Entities.Obracun entity)
		{
			if (!reader.Read()) return;
			
			entity.ID = (System.Int32)reader["ID"];
			entity.DatumOd = (System.DateTime)reader["DatumOd"];
			entity.DatumDo = (System.DateTime)reader["DatumDo"];
			entity.VrstaUplateRSM = (System.Int32)reader["VrstaUplateRSM"];
			entity.RedniBrojUGodini = (System.Int32)reader["RedniBrojUGodini"];
			entity.MinimalniOsobniOdbitak = (System.Decimal)reader["MinimalniOsobniOdbitak"];
			entity.FondSati = (System.Single)reader["FondSati"];
			entity.MaksimalniIznosPorezneOlaksice = (System.Decimal)reader["MaksimalniIznosPorezneOlaksice"];
			entity.IdentifikatorIDObrasca = (System.Int32)reader["IdentifikatorIDObrasca"];
			entity.BrutoOsnovica = (System.Decimal)reader["BrutoOsnovica"];
			entity.DoprinosPoDanuBoravkaUInozemstvu = reader.IsDBNull(reader.GetOrdinal("DoprinosPoDanuBoravkaUInozemstvu")) ? null : (System.Decimal?)reader["DoprinosPoDanuBoravkaUInozemstvu"];
			entity.Status = (System.Int32)reader["Status"];
			entity.DoprinosZdravstveno = (System.Decimal)reader["DoprinosZdravstveno"];
			entity.DoprinosZaposljavanje = (System.Decimal)reader["DoprinosZaposljavanje"];
			entity.DoprinosNezgoda = (System.Decimal)reader["DoprinosNezgoda"];
			entity.RSMVrstaObveznika = (System.Int32)reader["RSMVrstaObveznika"];
			entity.DatumIsplate = (System.DateTime)reader["DatumIsplate"];
			entity.MIO1aPostotak = reader.IsDBNull(reader.GetOrdinal("MIO1aPostotak")) ? null : (System.Single?)reader["MIO1aPostotak"];
			entity.MIO1bPostotak = reader.IsDBNull(reader.GetOrdinal("MIO1bPostotak")) ? null : (System.Single?)reader["MIO1bPostotak"];
			entity.MIO2Postotak = reader.IsDBNull(reader.GetOrdinal("MIO2Postotak")) ? null : (System.Single?)reader["MIO2Postotak"];
			entity.NajvisaMjOsnovica = reader.IsDBNull(reader.GetOrdinal("NajvisaMjOsnovica")) ? null : (System.Decimal?)reader["NajvisaMjOsnovica"];
			entity.DoprinosZaposljavanjeSInvaliditetom = reader.IsDBNull(reader.GetOrdinal("DoprinosZaposljavanjeSInvaliditetom")) ? null : (System.Decimal?)reader["DoprinosZaposljavanjeSInvaliditetom"];
			entity.IznosZdravstvenogZaInozemstvo = reader.IsDBNull(reader.GetOrdinal("IznosZdravstvenogZaInozemstvo")) ? null : (System.Decimal?)reader["IznosZdravstvenogZaInozemstvo"];
			entity.AcceptChanges();
		}
		
		/// <summary>
		/// Refreshes the <see cref="NetROS.Tiers.Entities.Obracun"/> object from the <see cref="DataSet"/>.
		/// </summary>
		/// <param name="dataSet">The <see cref="DataSet"/> to read from.</param>
		/// <param name="entity">The <see cref="NetROS.Tiers.Entities.Obracun"/> object.</param>
		public static void RefreshEntity(DataSet dataSet, NetROS.Tiers.Entities.Obracun entity)
		{
			DataRow dataRow = dataSet.Tables[0].Rows[0];
			
			entity.ID = (System.Int32)dataRow["ID"];
			entity.DatumOd = (System.DateTime)dataRow["DatumOd"];
			entity.DatumDo = (System.DateTime)dataRow["DatumDo"];
			entity.VrstaUplateRSM = (System.Int32)dataRow["VrstaUplateRSM"];
			entity.RedniBrojUGodini = (System.Int32)dataRow["RedniBrojUGodini"];
			entity.MinimalniOsobniOdbitak = (System.Decimal)dataRow["MinimalniOsobniOdbitak"];
			entity.FondSati = (System.Single)dataRow["FondSati"];
			entity.MaksimalniIznosPorezneOlaksice = (System.Decimal)dataRow["MaksimalniIznosPorezneOlaksice"];
			entity.IdentifikatorIDObrasca = (System.Int32)dataRow["IdentifikatorIDObrasca"];
			entity.BrutoOsnovica = (System.Decimal)dataRow["BrutoOsnovica"];
			entity.DoprinosPoDanuBoravkaUInozemstvu = Convert.IsDBNull(dataRow["DoprinosPoDanuBoravkaUInozemstvu"]) ? null : (System.Decimal?)dataRow["DoprinosPoDanuBoravkaUInozemstvu"];
			entity.Status = (System.Int32)dataRow["Status"];
			entity.DoprinosZdravstveno = (System.Decimal)dataRow["DoprinosZdravstveno"];
			entity.DoprinosZaposljavanje = (System.Decimal)dataRow["DoprinosZaposljavanje"];
			entity.DoprinosNezgoda = (System.Decimal)dataRow["DoprinosNezgoda"];
			entity.RSMVrstaObveznika = (System.Int32)dataRow["RSMVrstaObveznika"];
			entity.DatumIsplate = (System.DateTime)dataRow["DatumIsplate"];
			entity.MIO1aPostotak = Convert.IsDBNull(dataRow["MIO1aPostotak"]) ? null : (System.Single?)dataRow["MIO1aPostotak"];
			entity.MIO1bPostotak = Convert.IsDBNull(dataRow["MIO1bPostotak"]) ? null : (System.Single?)dataRow["MIO1bPostotak"];
			entity.MIO2Postotak = Convert.IsDBNull(dataRow["MIO2Postotak"]) ? null : (System.Single?)dataRow["MIO2Postotak"];
			entity.NajvisaMjOsnovica = Convert.IsDBNull(dataRow["NajvisaMjOsnovica"]) ? null : (System.Decimal?)dataRow["NajvisaMjOsnovica"];
			entity.DoprinosZaposljavanjeSInvaliditetom = Convert.IsDBNull(dataRow["DoprinosZaposljavanjeSInvaliditetom"]) ? null : (System.Decimal?)dataRow["DoprinosZaposljavanjeSInvaliditetom"];
			entity.IznosZdravstvenogZaInozemstvo = Convert.IsDBNull(dataRow["IznosZdravstvenogZaInozemstvo"]) ? null : (System.Decimal?)dataRow["IznosZdravstvenogZaInozemstvo"];
			entity.AcceptChanges();
		}
		#endregion 
		
		#region DeepLoad Methods
		/// <summary>
		/// Deep Loads the <see cref="IEntity"/> object with criteria based of the child 
		/// property collections only N Levels Deep based on the <see cref="DeepLoadType"/>.
		/// </summary>
		/// <remarks>
		/// Use this method with caution as it is possible to DeepLoad with Recursion and traverse an entire object graph.
		/// </remarks>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="entity">The <see cref="NetROS.Tiers.Entities.Obracun"/> object to load.</param>
		/// <param name="deep">Boolean. A flag that indicates whether to recursively save all Property Collection that are descendants of this instance. If True, saves the complete object graph below this object. If False, saves this object only. </param>
		/// <param name="deepLoadType">DeepLoadType Enumeration to Include/Exclude object property collections from Load.</param>
		/// <param name="childTypes">NetROS.Tiers.Entities.Obracun Property Collection Type Array To Include or Exclude from Load</param>
		/// <param name="innerList">A collection of child types for easy access.</param>
	    /// <exception cref="ArgumentNullException">entity or childTypes is null.</exception>
	    /// <exception cref="ArgumentException">deepLoadType has invalid value.</exception>
		internal override void DeepLoad(TransactionManager transactionManager, NetROS.Tiers.Entities.Obracun entity, bool deep, DeepLoadType deepLoadType, System.Type[] childTypes, DeepSession innerList)
		{
			if(entity == null)
				return;

			#region IdentifikatorIDObrascaSource	
			if (CanDeepLoad(entity, "Sifarnik|IdentifikatorIDObrascaSource", deepLoadType, innerList) 
				&& entity.IdentifikatorIDObrascaSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = entity.IdentifikatorIDObrasca;
				Sifarnik tmpEntity = EntityManager.LocateEntity<Sifarnik>(EntityLocator.ConstructKeyFromPkItems(typeof(Sifarnik), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IdentifikatorIDObrascaSource = tmpEntity;
				else
					entity.IdentifikatorIDObrascaSource = DataRepository.SifarnikProvider.GetByID(transactionManager, entity.IdentifikatorIDObrasca);		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IdentifikatorIDObrascaSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IdentifikatorIDObrascaSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.SifarnikProvider.DeepLoad(transactionManager, entity.IdentifikatorIDObrascaSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IdentifikatorIDObrascaSource

			#region VrstaUplateRSMSource	
			if (CanDeepLoad(entity, "Sifarnik|VrstaUplateRSMSource", deepLoadType, innerList) 
				&& entity.VrstaUplateRSMSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = entity.VrstaUplateRSM;
				Sifarnik tmpEntity = EntityManager.LocateEntity<Sifarnik>(EntityLocator.ConstructKeyFromPkItems(typeof(Sifarnik), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.VrstaUplateRSMSource = tmpEntity;
				else
					entity.VrstaUplateRSMSource = DataRepository.SifarnikProvider.GetByID(transactionManager, entity.VrstaUplateRSM);		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'VrstaUplateRSMSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.VrstaUplateRSMSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.SifarnikProvider.DeepLoad(transactionManager, entity.VrstaUplateRSMSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion VrstaUplateRSMSource

			#region RSMVrstaObveznikaSource	
			if (CanDeepLoad(entity, "Sifarnik|RSMVrstaObveznikaSource", deepLoadType, innerList) 
				&& entity.RSMVrstaObveznikaSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = entity.RSMVrstaObveznika;
				Sifarnik tmpEntity = EntityManager.LocateEntity<Sifarnik>(EntityLocator.ConstructKeyFromPkItems(typeof(Sifarnik), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.RSMVrstaObveznikaSource = tmpEntity;
				else
					entity.RSMVrstaObveznikaSource = DataRepository.SifarnikProvider.GetByID(transactionManager, entity.RSMVrstaObveznika);		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'RSMVrstaObveznikaSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.RSMVrstaObveznikaSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.SifarnikProvider.DeepLoad(transactionManager, entity.RSMVrstaObveznikaSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion RSMVrstaObveznikaSource
			
			//used to hold DeepLoad method delegates and fire after all the local children have been loaded.
			Dictionary<string, KeyValuePair<Delegate, object>> deepHandles = new Dictionary<string, KeyValuePair<Delegate, object>>();
			// Deep load child collections  - Call GetByID methods when available
			
			#region ObracunVirmanCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<ObracunVirman>|ObracunVirmanCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'ObracunVirmanCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.ObracunVirmanCollection = DataRepository.ObracunVirmanProvider.GetByIDObracun(transactionManager, entity.ID);

				if (deep && entity.ObracunVirmanCollection.Count > 0)
				{
					deepHandles.Add("ObracunVirmanCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<ObracunVirman>) DataRepository.ObracunVirmanProvider.DeepLoad,
						new object[] { transactionManager, entity.ObracunVirmanCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region ObracunOsobaCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<ObracunOsoba>|ObracunOsobaCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'ObracunOsobaCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.ObracunOsobaCollection = DataRepository.ObracunOsobaProvider.GetByIDObracun(transactionManager, entity.ID);

				if (deep && entity.ObracunOsobaCollection.Count > 0)
				{
					deepHandles.Add("ObracunOsobaCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<ObracunOsoba>) DataRepository.ObracunOsobaProvider.DeepLoad,
						new object[] { transactionManager, entity.ObracunOsobaCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			//Fire all DeepLoad Items
			foreach(KeyValuePair<Delegate, object> pair in deepHandles.Values)
		    {
                pair.Key.DynamicInvoke((object[])pair.Value);
		    }
			deepHandles = null;
		}
		
		#endregion 
		
		#region DeepSave Methods

		/// <summary>
		/// Deep Save the entire object graph of the NetROS.Tiers.Entities.Obracun object with criteria based of the child 
		/// Type property array and DeepSaveType.
		/// </summary>
		/// <param name="transactionManager">The transaction manager.</param>
		/// <param name="entity">NetROS.Tiers.Entities.Obracun instance</param>
		/// <param name="deepSaveType">DeepSaveType Enumeration to Include/Exclude object property collections from Save.</param>
		/// <param name="childTypes">NetROS.Tiers.Entities.Obracun Property Collection Type Array To Include or Exclude from Save</param>
		/// <param name="innerList">A Hashtable of child types for easy access.</param>
		internal override bool DeepSave(TransactionManager transactionManager, NetROS.Tiers.Entities.Obracun entity, DeepSaveType deepSaveType, System.Type[] childTypes, DeepSession innerList)
		{	
			if (entity == null)
				return false;
							
			#region Composite Parent Properties
			//Save Source Composite Properties, however, don't call deep save on them.  
			//So they only get saved a single level deep.
			
			#region IdentifikatorIDObrascaSource
			if (CanDeepSave(entity, "Sifarnik|IdentifikatorIDObrascaSource", deepSaveType, innerList) 
				&& entity.IdentifikatorIDObrascaSource != null)
			{
				DataRepository.SifarnikProvider.Save(transactionManager, entity.IdentifikatorIDObrascaSource);
				entity.IdentifikatorIDObrasca = entity.IdentifikatorIDObrascaSource.ID;
			}
			#endregion 
			
			#region VrstaUplateRSMSource
			if (CanDeepSave(entity, "Sifarnik|VrstaUplateRSMSource", deepSaveType, innerList) 
				&& entity.VrstaUplateRSMSource != null)
			{
				DataRepository.SifarnikProvider.Save(transactionManager, entity.VrstaUplateRSMSource);
				entity.VrstaUplateRSM = entity.VrstaUplateRSMSource.ID;
			}
			#endregion 
			
			#region RSMVrstaObveznikaSource
			if (CanDeepSave(entity, "Sifarnik|RSMVrstaObveznikaSource", deepSaveType, innerList) 
				&& entity.RSMVrstaObveznikaSource != null)
			{
				DataRepository.SifarnikProvider.Save(transactionManager, entity.RSMVrstaObveznikaSource);
				entity.RSMVrstaObveznika = entity.RSMVrstaObveznikaSource.ID;
			}
			#endregion 
			#endregion Composite Parent Properties

			// Save Root Entity through Provider
			if (!entity.IsDeleted)
				this.Save(transactionManager, entity);
			
			//used to hold DeepSave method delegates and fire after all the local children have been saved.
			Dictionary<Delegate, object> deepHandles = new Dictionary<Delegate, object>();
	
			#region List<ObracunVirman>
				if (CanDeepSave(entity.ObracunVirmanCollection, "List<ObracunVirman>|ObracunVirmanCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(ObracunVirman child in entity.ObracunVirmanCollection)
					{
						if(child.IDObracunSource != null)
							child.IDObracun = child.IDObracunSource.ID;
						else
							child.IDObracun = entity.ID;

					}

					if (entity.ObracunVirmanCollection.Count > 0 || entity.ObracunVirmanCollection.DeletedItems.Count > 0)
					{
						DataRepository.ObracunVirmanProvider.Save(transactionManager, entity.ObracunVirmanCollection);
						
						deepHandles.Add(
							(DeepSaveHandle< ObracunVirman >) DataRepository.ObracunVirmanProvider.DeepSave,
							new object[] { transactionManager, entity.ObracunVirmanCollection, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
	
			#region List<ObracunOsoba>
				if (CanDeepSave(entity.ObracunOsobaCollection, "List<ObracunOsoba>|ObracunOsobaCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(ObracunOsoba child in entity.ObracunOsobaCollection)
					{
						if(child.IDObracunSource != null)
							child.IDObracun = child.IDObracunSource.ID;
						else
							child.IDObracun = entity.ID;

					}

					if (entity.ObracunOsobaCollection.Count > 0 || entity.ObracunOsobaCollection.DeletedItems.Count > 0)
					{
						DataRepository.ObracunOsobaProvider.Save(transactionManager, entity.ObracunOsobaCollection);
						
						deepHandles.Add(
							(DeepSaveHandle< ObracunOsoba >) DataRepository.ObracunOsobaProvider.DeepSave,
							new object[] { transactionManager, entity.ObracunOsobaCollection, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
			//Fire all DeepSave Items
			foreach(KeyValuePair<Delegate, object> pair in deepHandles)
		    {
                pair.Key.DynamicInvoke((object[])pair.Value);
		    }
			
			// Save Root Entity through Provider, if not already saved in delete mode
			if (entity.IsDeleted)
				this.Save(transactionManager, entity);
				

			deepHandles = null;
						
			return true;
		}
		#endregion
	} // end class
	
	#region ObracunChildEntityTypes
	
	///<summary>
	/// Enumeration used to expose the different child entity types 
	/// for child properties in <c>NetROS.Tiers.Entities.Obracun</c>
	///</summary>
	public enum ObracunChildEntityTypes
	{
		
		///<summary>
		/// Composite Property for <c>Sifarnik</c> at IdentifikatorIDObrascaSource
		///</summary>
		[ChildEntityType(typeof(Sifarnik))]
		Sifarnik,
	
		///<summary>
		/// Collection of <c>Obracun</c> as OneToMany for ObracunVirmanCollection
		///</summary>
		[ChildEntityType(typeof(TList<ObracunVirman>))]
		ObracunVirmanCollection,

		///<summary>
		/// Collection of <c>Obracun</c> as OneToMany for ObracunOsobaCollection
		///</summary>
		[ChildEntityType(typeof(TList<ObracunOsoba>))]
		ObracunOsobaCollection,
	}
	
	#endregion ObracunChildEntityTypes
	
	#region ObracunFilterBuilder
	
	/// <summary>
	/// A strongly-typed instance of the <see cref="SqlFilterBuilder&lt;ObracunColumn&gt;"/> class
	/// that is used exclusively with a <see cref="Obracun"/> object.
	/// </summary>
	[CLSCompliant(true)]
	public class ObracunFilterBuilder : SqlFilterBuilder<ObracunColumn>
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the ObracunFilterBuilder class.
		/// </summary>
		public ObracunFilterBuilder() : base() { }

		/// <summary>
		/// Initializes a new instance of the ObracunFilterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		public ObracunFilterBuilder(bool ignoreCase) : base(ignoreCase) { }

		/// <summary>
		/// Initializes a new instance of the ObracunFilterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		/// <param name="useAnd">Specifies whether to combine statements using AND or OR.</param>
		public ObracunFilterBuilder(bool ignoreCase, bool useAnd) : base(ignoreCase, useAnd) { }

		#endregion Constructors
	}

	#endregion ObracunFilterBuilder
	
	#region ObracunParameterBuilder
	
	/// <summary>
	/// A strongly-typed instance of the <see cref="ParameterizedSqlFilterBuilder&lt;ObracunColumn&gt;"/> class
	/// that is used exclusively with a <see cref="Obracun"/> object.
	/// </summary>
	[CLSCompliant(true)]
	public class ObracunParameterBuilder : ParameterizedSqlFilterBuilder<ObracunColumn>
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the ObracunParameterBuilder class.
		/// </summary>
		public ObracunParameterBuilder() : base() { }

		/// <summary>
		/// Initializes a new instance of the ObracunParameterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		public ObracunParameterBuilder(bool ignoreCase) : base(ignoreCase) { }

		/// <summary>
		/// Initializes a new instance of the ObracunParameterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		/// <param name="useAnd">Specifies whether to combine statements using AND or OR.</param>
		public ObracunParameterBuilder(bool ignoreCase, bool useAnd) : base(ignoreCase, useAnd) { }

		#endregion Constructors
	}

	#endregion ObracunParameterBuilder
} // end namespace
